

        <g:set var="entityName" value="${message(code: 'classes.label', default: 'Classes')}" />
            
             <g:form action="courseTeacherSave" method="post" name="classesMgrSelectTeacher">
                <div class="dialog">
                    <table>
                        <tbody>
                        <center>
                            <font size="" color="bule">为${classesInstance.grade}年级${classesInstance.team}添加代课老师</font>
                            </center>
                            <tr class="prop"> 
                                <td valign="top" class="value ${hasErrors(bean: classesInstance, field: 'teacherCourseClasses', 'errors')}" align="center">
                                <FIELDSET>
                                <LEGEND>添加班级的代课老师</LEGEND><P>
                                    </br>
                                    双击可以删除所选项
                                    </br>
                                    <select name="teacherCourseClasses" id="teacherCourseClasses" size="6" style="width: 300px;height:200px;" multiple>
                                    teacherCourse
                                    <%
                                    teacherCourse.each{
                                    %>
                                        <option value="${it.course},${it.teacher.id}" course ="${it.course}">${it.teacher.name}（${it.course}）</option>
                                    <%}%>
                                    </select><a href="JavaScript:" id="clearAllOption">清除所有</a>
                                    </br></br>
                                    <g:each in="${coursesList}" status="i" var="aCourse">
                                        <span class=""><a href="javascript:" class="courseSelectTeacher" code="${aCourse.value}"><font size="" color="bule">${aCourse.value}</font></a></span>|
                                    </g:each>
                                    </br></br></br>
                                    <div class="" id="teacherCourseSelect"></div>
                                    </br></br></br></br>
                                </FIELDSET>
                                </td>
                            </tr>
                            <g:hiddenField name="classesid" value="${classesInstance.id}" />

                            <g:hiddenField name="selectedTeacher" value=","/>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>